package com.happyrecyclingstation.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Message {
    private Integer id; // 主键
    private String sessionId; // 会话id
    private Integer senderId; // 发送者id
    private Integer receiverId; // 接收者id
    private String content; // 消息内容
    private Short isRead; // 是否已读 0-未读 1-已读
    private LocalDateTime sendTime; // 发送时间
}
